import request from '../request.js'

// 获取谷歌2fa
function getGoogle2FA() {
    return request.get('/api/securityCenter/getGoogle2FA', {})
}

// 激活绑定谷歌2fa
function activeGoogle2FA(data) {
    return request.post('/api/securityCenter/activeGoogle2FA', data)
}

// 登录历史
function loginLog(data) {
    return request.get('/api/securityCenter/loginLog', data)
}

export default {
    getGoogle2FA,
    activeGoogle2FA,
    loginLog,
}